package com.mgface.framework.ws;

import java.util.Set;

import javax.websocket.Endpoint;
import javax.websocket.server.ServerApplicationConfig;
import javax.websocket.server.ServerEndpointConfig;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
 * 服务启动时，自动执行
 * @author yuxiang
 *
 */
public class MGFaceServerApplicationConfig implements ServerApplicationConfig{
	private final static Logger log = LogManager.getLogger(MGFaceServerApplicationConfig.class);
	@Override
	public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> set) {
		log.info("扫描到{}个WS实例。", set.size());
		return set;
	}

	@Override
	public Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> arg0) {
		return null;
	}
}
